/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.WebIDE.ejb.sessions;

import java.util.List;
import javax.ejb.Remote;
import javax.persistence.EntityManager;
import org.WebIDE.ejb.entities.Projects;
import org.WebIDE.ejb.sessions.exceptions.*;

/**
 *
 * @author huy
 */
@Remote
public interface ProjectsFacadeRemote {

public void create(Projects projects) throws PreexistingEntityException, RollbackFailureException, Exception;

    public void edit(Projects projects) throws NonexistentEntityException, RollbackFailureException, Exception ;

    void remove(Projects projects);

    Projects find(Object id);

    List<Projects> findAll();
    
    public int getProjectsCount();

    public EntityManager getEntityManager();

    public Projects findProjects(Integer id);

    public List<Projects> findProjectsEntities(int maxResults, int firstResult);

    public List<Projects> findProjectsEntities();

    public void destroy(Integer id) throws NonexistentEntityException, RollbackFailureException, Exception;
}
